package cn.newhopedairy.order.domain.assembly;

import cn.newhopedairy.order.domain.aggregate.MainOrder;
import cn.newhopedairy.order.infrastructure.db.po.MainOrderPo;
import org.mapstruct.Mapper;

/**
 * @author Neo.Li
 * @date 2020-09-0918:19
 */
@Mapper(componentModel = "spring")
public interface MainOrderAssembly {
    /**
     * @param mainOrderPo
     * @return
     */
    MainOrder toMainOrder(MainOrderPo mainOrderPo);

    /**
     * @param mainOrder
     * @return
     */
    MainOrderPo toMainOrderPo(MainOrder mainOrder);
}
